home *** CD-ROM | disk | FTP | other *** search
/ PSION CD 2 / PsionCDVol2.iso / Programs / 602 / Help-FilesOPLDeveloppers.sis / S5 Constants (.txt) < prev    next >
Encoding:
EPOC Database  |  2000-10-04  |  16.5 KB  |  592 lines

  1. "Data.app
  2. "Data.app;@O
  3. Table1
  4. Group:
  5. Const:
  6. Table1
  7. ColA9
  8. ColB9
  9. ColA10
  10. ColB10
  11. General constants
  12. KTrue%=-1
  13. KFalse%=0
  14. lAKMaxStringLen%=255
  15. KMaxFloat=1.7976931348623157E+308
  16. KMinFloat=2.2250738585072015E-308 rem Minimum with full precision in mantissa
  17. KMinFloatDenorm=5e-324  rem Denormalised (just one bit of precision left)
  18. KMinInt%=$8000 rem -32768 (translator needs hex for maximum ints)
  19. KMaxInt%=32767
  20. KMinLong&=&80000000 rem -2147483648 (hex for translator)
  21. KMaxLong&=2147483647
  22. 'AKDFileNameLen%=255
  23.       rem flags
  24. KDFileEditBox%=$0001
  25. KDFileAllowFolders%=$0002
  26. KDFileFoldersOnly%=$0004
  27. KDFileEditorDisallowExisting%=$0008
  28. KDFileEditorQueryExisting%=$0010
  29. KDFileAllowNullStrings%=$0020
  30. KDFileAllowWildCards%=$0080
  31. KDFileSelectorWithRom%=$0100
  32. KDFileSelectorWithSystem%=$0200
  33. KKeyTab%=9
  34. KKeyEnter%=13
  35. AKGetMenu%=290    rem unfortunately must be named KGetMenu%
  36. because KKeyMenu% clashes with badly-named other constant which cannot be changed for compatibility reasons
  37. KKeyUpArrow%=256
  38. KKeyDownArrow%=257
  39. KKeyLeftArrow%=259
  40. KKeyRightArrow%=258
  41. KKeyPageUp%=260
  42. KKeyPageDown%=261
  43. KKeyPageLeft%=262
  44. KKeyPageRight%=263
  45. KKeyMenu%=4150         rem const kept for compatibility
  46. KKeySidebarMenu%=10000 rem const kept for compatibility
  47. cEKErrGenFail%=-1
  48. KErrInvalidArgs%=-2
  49. KErrOs%=-3
  50. KErrNotSupported%=-4
  51. KErrUnderflow%=-5
  52. KErrOverflow%=-6
  53. KErrOutOfRange%=-7
  54. KErrDivideByZero%=-8
  55. KErrInUse%=-9
  56. KErrNoMemory%=-10
  57. KErrNoSegments%=-11
  58. KErrNoSemaphore%=-12
  59. KErrNoProcess%=-13
  60. KErrAlreadyOpen%=-14
  61. KErrNotOpen%=-15
  62. KErrImage%=-16
  63. KErrNoReceiver%=-17
  64. KErrNoDevices%=-18
  65. KErrNoFileSystem%=-19
  66. KErrFailedToStart%=-20
  67. KErrFontNotLoaded%=-21
  68. KErrTooWide%=-22
  69. KErrTooManyItems%=-23
  70. KErrBatLowSound%=-24
  71. KErrBatLowFlash%=-25
  72. KErrExists%=-32
  73. KErrNotExists%=-33
  74. KErrWrite%=-34
  75. KErrRead%=-35
  76. KErrEof%=-36
  77. KErrFull%=-37
  78. KErrName%=-38
  79. KErrAccess%=-39
  80. KErrLocked%=-40
  81. KErrDevNotExist%=-41
  82. KErrDir%=-42
  83. KErrRecord%=-43
  84. KErrReadOnly%=-44
  85. KErrInvalidIO%=-45
  86. KErrFilePending%=-46
  87. KErrVolume%=-47
  88. KErrIOCancelled%=-48
  89. rem OPL specific error
  90. KErrSyntax%=-77
  91. KOplStructure%=-85
  92. KErrIllegal%=-96
  93. KErrNumArg%=-97
  94. KErrUndef%=-98
  95. KErrNoProc%=-99
  96. KErrNoFld%=-100
  97. KErrOpen%=-101
  98. KErrClosed%=-102
  99. KErrRecSize%=-103
  100. KErrModLoad%=-104
  101. KErrMaxLoad%=-105
  102. KErrNoMod%=-106
  103. KErrNewVer%=-107
  104. KErrModNotLoaded%=-108
  105. KErrBadFileType%=-109
  106. KErrTypeViol%=-110
  107. KErrSubs%=-111
  108. KErrStrTooLong%=-112
  109. KErrDevOpen%=-113
  110. KErrEsc%=-114
  111. KErrMaxDraw%=-117
  112. KErrDrawNotOpen%=-118
  113. KErrInvalidWindow%=-119
  114. KErrScreenDenied%=-120
  115. KErrOpxNotFound%=-121
  116. KErrOpxVersion%=-122
  117. KErrOpxProcNotFound%=-123
  118. KErrStopInCallback%=-124
  119. KErrIncompUpdateMode%=-125
  120. KErrInTransaction%=-126
  121. General constants
  122. KTrue%=-1
  123. KFalse%=0
  124. Data type ranges
  125. Special keys>KKeyEsc%=27
  126. KKeySpace%=32
  127. KKeyDel%=8
  128. KKeyTab%=9
  129. KKeyEnter%=13
  130. /Key constants for 16-bit keywords GETEVENT etc.
  131. 1Key constants for 32-bit keywords GETEVENT32 etc.
  132. KKeyMenu32%=4150
  133. KKeySidebarMenu32%=10000
  134. KKeyPageLeft32%=4098
  135. KKeyPageRight32%=4099
  136. KKeyPageUp32%=4100
  137. KKeyPageDown32%=4101
  138. KKeyLeftArrow32%=4103
  139. KKeyRightArrow32%=4104
  140. KKeyUpArrow32%=4105
  141. KKeyDownArrow32%=4106
  142. Month numbers
  143. KJanuary%=1
  144. KFebruary%=2
  145. KMarch%=3
  146. KApril%=4
  147. KMay%=5
  148. KJune%=6
  149. KJuly%=7
  150. KAugust%=8
  151. KSeptember%=9
  152. KOctober%=10
  153. KNovember%=11
  154. KDecember%=12
  155. Graphics
  156. KDefaultWin%=1
  157. KgModeSet%=0
  158. KgModeClear%=1
  159. KgModeInvert%=2
  160. KtModeSet%=0
  161. KtModeClear%=1
  162. KtModeInvert%=2
  163. KtModeReplace%=3
  164. KgStyleNormal%=0
  165. KgStyleBold%=1
  166. KgStyleUnder%=2
  167. KgStyleInverse%=4
  168. KgStyleDoubleHeight%=8
  169. KgStyleMonoFont%=16
  170. KgStyleItalic%=32
  171. /For 32-bit status words IOWAIT and IOWAITSTAT32Srem Use KErrFilePending% (-46) for 16-bit status words
  172. KStatusPending32&=&80000001
  173. Error codes
  174.     For ALERT+KAlertEsc%=1
  175. KAlertEnter%=2
  176. KAlertSpace%=3
  177. For BUSY and GIPRINTYKBusyTopLeft%=0
  178. KBusyBottomLeft%=1
  179. KBusyTopRight%=2
  180. KBusyBottomRight%=3
  181. KBusyMaxText%=80
  182. For CMD$
  183. KCmdAppName%=1   rem Full path name used to start program
  184. KCmdUsedFile%=2
  185. KCmdLetter%=3
  186. rem For CMD$(3)
  187. KCmdLetterCreate$="C"
  188. KCmdLetterOpen$="O"
  189. KCmdLetterRun$="R"
  190. For CURSOR-KCursorTypeNotFlashing%=2
  191. KCursorTypeGrey%=4
  192. For DATIM$ - offsets
  193. KDatimOffDayName%=1
  194. KDatimOffDay%=5
  195. KDatimOffMonth%=8
  196. KDatimOffYear%=12
  197. KDatimOffHour%=17
  198. KDatimOffMinute%=20
  199. KDatimOffSecond%=23
  200. For dBUTTON
  201. KDButtonNoLabel%=$100
  202. KDButtonPlainKey%=$200
  203. KDButtonDel%=8
  204. KDButtonTab%=9
  205. KDButtonEnter%=13
  206. KDButtonEsc%=27
  207. KDButtonSpace%=32
  208. For dEDITMULTI and printing
  209. KParagraphDelimiter%=$06
  210. KLineBreak%=$07
  211. KPageBreak%=$08
  212. KTabCharacter%=$09
  213. KNonBreakingTab%=$0a
  214. KNonBreakingHyphen%=$0b
  215. KPotentialHyphen%=$0c
  216. KNonBreakingSpace%=$10
  217. KPictureCharacter%=$0e
  218. KVisibleSpaceCharacter%=$0f
  219. AKButtS3%=0
  220. KButtS3Raised%=0
  221. KButtS3Pressed%=1
  222. KButtS3a%=1
  223. KButtS3aRaised%=0
  224. KButtS3aSemiPressed%=1
  225. KButtS3aSunken%=2
  226. KButtS5%=2
  227. KButtS5Raised%=0
  228. KButtS5SemiPressed%=1
  229. KButtS5Sunken%=2
  230. KButtLayoutTextRightPictureLeft%=0
  231. KButtLayoutTextBottomPictureTop%=1
  232. KButtLayoutTextTopPictureBottom%=2
  233. KButtLayoutTextLeftPictureRight%=3
  234. KButtTextRight%=0
  235. KButtTextBottom%=1
  236. KButtTextTop%=2
  237. KButtTextLeft%=3
  238. KButtExcessShare%=$00
  239. KButtExcessToText%=$10
  240. KButtExcessToPicture%=$20
  241. For DEFAULTWIN-KDefWin4ColourMode%=1
  242. KDefWin16ColourMode%=2
  243.     For dFILE
  244. Opl-related Uids for dFILE
  245. KUidOplInterpreter&=268435575
  246. KUidOplApp&=268435572
  247. KUidOplDoc&=268435573
  248. KUidOPO&=268435571
  249. KUidOplFile&=268435594
  250. KUidOpxDll&=268435549
  251. For DIALOG
  252. KDlgCancel%=0
  253. For dINIT (flags for dialogs)QKDlgButRight%=1
  254. KDlgNoTitle%=2
  255. KDlgFillScreen%=4
  256. KDlgNoDrag%=8
  257. KDlgDensePack%=16
  258. For DOWUKMonday%=1
  259. KTuesday%=2
  260. KWednesday%=3
  261. KThursday%=4
  262. KFriday%=5
  263. KSaturday%=6
  264. KSunday%=7
  265. For dPOSITION:KDPositionLeft%=-1
  266. KDPositionCentre%=0
  267. KDPositionRight%=1
  268.     For dTEXT
  269. KDTextLeft%=0
  270. KDTextRight%=1
  271. KDTextCentre%=2
  272. KDTextBold%=$100       rem Ignored in Eikon
  273. KDTextLineBelow%=$200
  274. KDTextAllowSelection%=$400
  275. KDTextSeparator%=$800
  276.     For dTIME
  277. KDTimeAbsNoSecs%=0
  278. KDTimeAbsWithSecs%=1
  279. KDTimeDurationNoSecs%=2
  280. KDTimeDurationWithSecs%=3
  281. rem Flags for dTIME (for ORing combinations)
  282. KDTimeWithSeconds%=1
  283. KDTimeDuration%=2
  284. KDTimeNoHours%=4
  285. KDTime24Hour%=8
  286. For dXINPUT
  287. KDXInputMaxLen%=16
  288. For FINDFIELDmKFindCaseDependent%=16
  289. KFindBackwards%=0
  290. KFindForwards%=1
  291. KFindBackwardsFromEnd%=2
  292. KFindForwardsFromStart%=3
  293.     For FLAGS+KFlagsAppFileBased%=1
  294. KFlagsAppIsHidden%=2
  295. For gBORDER and gXBORDER
  296. KBordSglShadow%=1
  297. KBordSglGap%=2
  298. KBordDblShadow%=3
  299. KBordDblGap%=4
  300. KBordGapAllRound%=$100
  301. KBordRoundCorners%=$200
  302. KBordLosePixel%=$400
  303. For gBUTTON
  304. For gCLOCKiKgClockS5System%=6
  305. KgClockS5Analog%=7
  306. KgClockS5Digital%=8
  307. KgClockS5LargeAnalog%=9
  308. KgClockS5Formatted%=11
  309. For gCREATE
  310. KgCreateInvisible%=0
  311. KgCreateVisible%=1
  312. KgCreate2ColourMode%=$0000
  313. KgCreate4ColourMode%=$0001
  314. KgCreate16ColourMode%=$0002
  315. KgCreateHasShadow%=$0010
  316. Crem Array indexes
  317. KEvAType%=1
  318. KEvATime%=2
  319. rem event array keypress subscripts
  320. KEvAKMod%=4
  321. KEvAKRep%=5
  322. rem Pointer event array subscripts
  323. KEvAPtrOplWindowId%=3
  324. KEvAPtrWindowId%=3
  325. KEvAPtrType%=4
  326. KEvAPtrModifiers%=5
  327. KEvAPtrPositionX%=6
  328. KEvAPtrPositionY%=7
  329. KEvAPtrScreenPosX%=8
  330. KEvAPtrScreenPosY%=9
  331. rem Event types
  332. KEvNotKeyMask&=&400
  333. KEvFocusGained&=&401
  334. KEvFocusLost&=&402
  335. KEvSwitchOn&=&403
  336. KEvCommand&=&404
  337. KEvDateChanged&=&405
  338. KEvKeyDown&=&406
  339. KEvKeyUp&=&407
  340. KEvPtr&=&408
  341. KEvPtrEnter&=&409
  342. KEvPtrExit&=&40A
  343. rem Pointer event types
  344. KEvPtrPenDown&=0
  345. KEvPtrPenUp&=1
  346. KEvPtrButton1Down&=KEvPtrPenDown&
  347. KEvPtrButton1Up&=KEvPtrPenUp&
  348. KEvPtrButton2Down&=2
  349. KEvPtrButton2Up&=3
  350. KEvPtrButton3Down&=4
  351. KEvPtrButton3Up&=5
  352. KEvPtrDrag&=6
  353. KEvPtrMove&=7
  354. KEvPtrButtonRepeat&=8
  355. KEvPtrSwitchOn&=9
  356. For GETCMD$
  357. KGetCmdLetterCreate$="C"
  358. KGetCmdLetterOpen$="O"
  359. KGetCmdLetterExit$="X"
  360. KGetCmdLetterUnknown$="U"
  361. KGetCmdLetterBackup$="S"
  362. KGetCmdLetterRestart$="R"
  363. For gLOADBIT+KgLoadBitReadOnly%=0
  364. KgLoadBitWriteable%=1
  365.     For gRANK,KgRankForeground%=1
  366. KgRankBackGround%=32767
  367. For gPOLY - array subscriptsWKgPolyAStartX%=1
  368. KgPolyAStartY%=2
  369. KgPolyANumPairs%=3
  370. KgPolyANumDx1%=4
  371. KgPolyANumDy1%=5
  372. For gPRINTB
  373. KgPrintBRightAligned%=1
  374. KgPrintBLeftAligned%=2
  375. KgPrintBCentredAligned%=3
  376. rem The defaults
  377. KgPrintBDefAligned%=KgPrintBLeftAligned%
  378. KgPrintBDefTop%=0
  379. KgPrintBDefBottom%=0
  380. KgPrintBDefMargin%=0
  381. For gXBORDER:KgXBorderS3Type%=0
  382. KgXBorderS3aType%=1
  383. KgXBorderS5Type%=2
  384. For gXPRINT
  385. KgXPrintNormal%=0
  386. KgXPrintInverse%=1
  387. KgXPrintInverseRound%=2
  388. KgXPrintThinInverse%=3
  389. KgXPrintThinInverseRound%=4
  390. KgXPrintUnderlined%=5
  391. KgXPrintThinUnderlined%=6
  392. For KMODFKKmodShift%=2
  393. KKmodControl%=4
  394. KKmodPsion%=8
  395. KKmodCaps%=16
  396. KKmodFn%=32
  397. For mCARD and mCASC
  398. KMenuDimmed%=$1000
  399. KMenuSymbolOn%=$2000
  400. KMenuSymbolIndeterminate%=$4000
  401. KMenuCheckBox%=$0800
  402. KMenuOptionStart%=$0900
  403. KMenuOptionMiddle%=$0A00
  404. KMenuOptionEnd%=$0B00
  405. For mPOPUP position type
  406. rem Specifies which corner of the popup is given by the coordinates
  407. KMPopupPosTopLeft%=0
  408. KMPopupPosTopRight%=1
  409. KMPopupPosBottomLeft%=2
  410. KMPopupPosBottomRight%=3
  411. For PARSE$ - array subscripts
  412. KParseAOffFSys%=1
  413. KParseAOffDev%=2
  414. KParseAOffPath%=3
  415. KParseAOffFilename%=4
  416. KParseAOffExt%=5
  417. KParseAOffWild%=6
  418. rem Wild-card flags
  419. KParseWildNone%=0
  420. KParseWildFilename%=1
  421. KParseWildExt%=2
  422. KParseWildBoth%=3
  423. !For SCREENINFO - array subscripts
  424. KSInfoALeft%=1
  425. KSInfoATop%=2
  426. KSInfoAScrW%=3
  427. KSInfoAScrH%=4
  428. KSInfoAReserved1%=5
  429. KSInfoAFont%=6
  430. KSInfoAPixW%=7
  431. KSInfoAPixH%=8
  432. KSInfoAReserved2%=9
  433. KSInfoAReserved3%=10
  434. For SETFLAGSaKRestrictTo64K&=&0001
  435. KAutoCompact&=&0002
  436. KTwoDigitExponent&=&0004
  437. KSendSwitchOnMessage&=&010000
  438. For GetEvent32
  439. For PointerFilterJKPointerFilterEnterExit%=$1
  440. KPointerFilterMove%=$2
  441. KPointerFilterDrag%=$4
  442. +code page 1252 ellipsis ("windows latin 1"))KScreenEllipsis%=133
  443. KScreenLineFeed%=10
  444. EKFontArialBold8&=       268435951
  445. KFontArialBold11&=      268435952
  446. KFontArialBold13&=      268435953
  447. KFontArialNormal8&=     268435954
  448. KFontArialNormal11&=    268435955
  449. KFontArialNormal13&=    268435956
  450. KFontArialNormal15&=    268435957
  451. KFontArialNormal18&=    268435958
  452. KFontArialNormal22&=    268435959
  453. KFontArialNormal27&=    268435960
  454. KFontArialNormal32&=    268435961
  455. KFontTimesBold8&=       268435962
  456. KFontTimesBold11&=      268435963
  457. KFontTimesBold13&=      268435964
  458. KFontTimesNormal8&=     268435965
  459. KFontTimesNormal11&=    268435966
  460. KFontTimesNormal13&=    268435967
  461. KFontTimesNormal15&=    268435968
  462. KFontTimesNormal18&=    268435969
  463. KFontTimesNormal22&=    268435970
  464. KFontTimesNormal27&=    268435971
  465. KFontTimesNormal32&=    268435972
  466. KFontCourierBold8&=      268436062
  467. KFontCourierBold11&=     268436063
  468. KFontCourierBold13&=     268436064
  469. KFontCourierNormal8&=    268436065
  470. KFontCourierNormal11&=   268436066
  471. KFontCourierNormal13&=   268436067
  472. KFontCourierNormal15&=   268436068
  473. KFontCourierNormal18&=   268436069
  474. KFontCourierNormal22&=   268436070
  475. KFontCourierNormal27&=   268436071
  476. KFontCourierNormal32&=   268436072
  477. KFontCalc13n&=   268435493
  478. KFontCalc18n&=   268435494
  479. KFontCalc24n&=   268435495
  480. KFontMon18n&=    268435497
  481. KFontMon18b&=    268435498
  482. KFontMon9n&=     268435499
  483. KFontMon9b&=     268435500
  484. KFontTiny1&=     268435501
  485. KFontTiny2&=     268435502
  486. KFontTiny3&=     268435503
  487. KFontTiny4&=     268435504
  488. KFontEiksym15&=  268435661
  489. KFontSquashed&=  268435701
  490. KFontDigital35&= 268435752
  491. >Arem Mode category 1
  492. KIoOpenModeOpen%=$0000
  493. KIoOpenModeCreate%=$0001
  494. KIoOpenModeReplace%=$0002
  495. KIoOpenModeAppend%=$0003
  496. KIoOpenModeUnique%=$0004
  497. rem Mode category 2
  498. KIoOpenFormatBinary%=$0000
  499. KIoOpenFormatText%=$0020
  500. rem Mode category 3
  501. KIoOpenAccessUpdate%=$0100
  502. KIoOpenAccessRandom%=$0200
  503. KIoOpenAccessShare%=$0400
  504. AKLangEnglish%=1
  505. KLangFrench%=2
  506. KLangGerman%=3
  507. KLangSpanish%=4
  508. KLangItalian%=5
  509. KLangSwedish%=6
  510. KLangDanish%=7
  511. KLangNorwegian%=8
  512. KLangFinnish%=9
  513. KLangAmerican%=10
  514. KLangSwissFrench%=11
  515. KLangSwissGerman%=12
  516. KLangPortuguese%=13
  517. KLangTurkish%=14
  518. KLangIcelandic%=15
  519. KLangRussian%=16
  520. KLangHungarian%=17
  521. KLangDutch%=18
  522. KLangBelgianFlemish%=19
  523. KLangAustralian%=20
  524. KLangBelgianFrench%=21
  525. KLangAustrian%=22
  526. KLangNewZealand%=23
  527. KLangInternationalFrench%=24
  528. For gCLOCK
  529. KClockLocaleConformant%=6
  530. KClockSystemSetting%=KClockLocaleConformant%
  531. KClockAnalog%=7
  532. KClockDigital%=8
  533. KClockLargeAnalog%=9
  534. rem gClock 10 no longer supported (use slightly changed gCLOCK 11)
  535. KClockFormattedDigital%=11
  536. +For gFONT (these may change before release)
  537. For IOOPEN
  538. Language code for CAPTION
  539. Table1
  540. Group:
  541. Const:
  542. Arial
  543. Table1
  544. Group:
  545. Const:
  546. Arial
  547. Table1
  548. Group:
  549. Const:
  550. Arial
  551. For gCLOCK
  552. KClockLocaleConformant%=6
  553. KClockSystemSetting%=KClockLocaleConformant%
  554. KClockAnalog%=7
  555. KClockDigital%=8
  556. KClockLargeAnalog%=9
  557. rem gClock 10 no longer supported (use slightly changed gCLOCK 11)
  558. KClockFormattedDigital%=11
  559. +For gFONT (these may change before release)
  560. For IOOPEN
  561. Language code for CAPTION
  562.  Constants in Const.ophxAvailable, along with other doc in DATA, at
  563. http://www.knoware.nl/users/wsmout/s5doc.html
  564. comments to wsmout@knoware.nl
  565. Table1
  566. Group:
  567. Const:
  568. Arial
  569. Table1
  570. ColA9
  571. ColB9
  572. ColA10
  573. ColB10
  574. Index1
  575. ColA9
  576. For gCLOCK
  577. KClockLocaleConformant%=6
  578. KClockSystemSetting%=KClockLocaleConformant%
  579. KClockAnalog%=7
  580. KCloc
  581. kDigital%=8
  582. KClockLargeAnalog%=9
  583. rem gClock 10 no longer supported (use slightly changed gCLOCK 11)
  584. KClockFormattedDigital%=11
  585. +For gFONT (these may change before release)
  586. For IOOPEN
  587. Language code for CAPTION
  588. % Constants in Const.oph
  589. vs 1 01-08-98xAvailable, along with other doc in DATA, at
  590. http://www.knoware.nl/users/wsmout/s5doc.html
  591. comments to wsmout@knoware.nl
  592.